import static org.junit.Assert.*;

import org.junit.Test;


public class consumeCrewMateTest {

	@Test
	public void testConsumeCrewMate(){
	Ship theShip = new Ship();
	String[] names = new String[4];
	names[0] = "1";
	names[1] = "2";
	names[2] = "3";
	names[3] = "4";
	theShip.setCrewNames(names);

	assertEquals(theShip.consumeCrewMate(), "1");
	assertEquals(theShip.consumeCrewMate(), "2");
	assertEquals(theShip.consumeCrewMate(), "3");
	assertEquals(theShip.consumeCrewMate(), "4");
	assertEquals(theShip.consumeCrewMate(), "");

	}

}
